package com.example.common.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Value;
import org.checkerframework.checker.units.qual.A;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@ApiModel
@Data
public class CheckupProduct {
    @ApiModelProperty(value = "产品id")
    private long cpId;
    @ApiModelProperty(value = "产品名称")
    private String name;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
    @ApiModelProperty(value = "禁用状态")
    private Integer disable;
    @ApiModelProperty(value = "检查类型id")
    private Long ctId;
    @ApiModelProperty(value = "检查类型")
    private String ctName;
    @ApiModelProperty(value = "项目数量")
    private Long itemAmount;
    @ApiModelProperty(value = "项目内容")
    private String itemContent;
    @ApiModelProperty(value = "体检须知")
    private String notice;
    @ApiModelProperty(value = "注意事项")
    private String precautions;
    @ApiModelProperty(value = "标签")
    private String label;
    @ApiModelProperty(value = "性别限制")
    private String gender;
    @ApiModelProperty(value = "上架状态")
    private Integer showAble;
    @ApiModelProperty(value = "是否推荐")
    private Integer recommend;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "上架时间")
    private Date addedTime;
    @ApiModelProperty(value = "上架有效时间")
    private Long addedEffectiveTime;
    @ApiModelProperty(value = "图标")
    private String icon;

    @ApiModelProperty(value = "上架有效时间数量")
    private Integer addedEffectiveTimeAmount;
    @ApiModelProperty(value = "上架有效时间单位 1-> 时 2->天 3->周 4->月 5->年")
    private Integer addedEffectiveTimeUnit;


}
